package org.aiforum.backend.common;

/**
 * 响应对象类
 * @author VIC
 *
 */
public class Response {
    
	//创建单列模式
	private Response(){}
	
	public static Response getInstaner(){
		return new Response();
	}
	
	
	/**响应状态:请求执行是否成功,默认false表示不成功*/
	private boolean state;
	/**响应消息:请求提示信息*/
	private String message;
	/**响应数据:请求的数据*/
	private Object data;
	
	
	public boolean isState() {
		return state;
	}
	public void setState(boolean state) {
		this.state = state;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
}
